package com.guli.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @ClassName: StaApplication 
 * @Description: TODO
 * @author: liuzg
 * @Date: 2021/3/31 16:33
 * @Version: v1.0
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.guli"})
@EnableDiscoveryClient // nacas注册中心
@EnableFeignClients  // 服务发现  远程调用
@MapperScan("com.guli.staservice.mapper")
@EnableScheduling  // 定时任务注解开启 第一步
public class StaApplication {

    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class, args);
    }
}
